var mongoose = require('mongoose')
//disabled _id
//new Schema({ name: String }, { _id: false })
var UserSchema = new mongoose.Schema({
    nickname : {
        type : String,
        required : true
    },
    telephone : {
        type : Number,
        required : true
    },
    password : {
        type : String,
        required : true
    }
})

//TigerSchema.methods.speak = function(){
//    console.log('吼吼吼')
//}

module.exports = mongoose.model('User',UserSchema)
